// koa请求传参
const Koa = require('koa');

const app = new Koa();

const Router = require('koa-router');

const router = new Router();

router.get('/', function(ctx, next) {
    console.log(ctx.query, 'ctx.query')
    ctx.body = 'Hello JSPang'
});

app
    .use(router.routes())
    .use(router.allowedMethods());

app.listen(3000, () => {
    console.log('koa server starting testing===')
});
